import Vue from 'vue'
import Router from 'vue-router'
import Index from '../views/index'
import Header from '@/components/header'
// import ActivitiesDetail from '../views/detail/activitiesDetail'
import Login from '../views/login'
import Home from '../views/home'
import FieldList from '../views/field/fieldList'
import CreateField from '../views/field/createField'
import Text from '../components/text'
import FiledDetail from '../views/field/filedDetail'
import ActivityDetail from '../views/activity/activityDetail'
import ActivityList from '../views/activity/activityList'
import EditAct from "../views/activity/editAct"
import CommunityList from "../views/community/communityList"
import CommunityDetail from '../views/community/communityDetail'
import Edit from "../views/community/edit"
import TravelDetail from "../views/travel/travelDetail"
import createTravel from "../views/travel/createTravel"
import createTravelCircle from "../views/travel/createTraveCircle"
import User from "../views/user/userIndex"
import UserInfo from "../views/user/userInfo"
import UserActivity from "../views/user/userActivity"
import UserCircle from "../views/user/userCircle"
import UserTravel from "../views/user/userTravel"
import UserPlace from "../views/user/userPlace"
import UserCollect from "../views/user/userCollect"
import HistoryHelp from "../views/user/historyHelp"
import APPdownload from "../views/APPdownload"
import userVerifyFailed from "../views/user/userVerifyFailed"
Vue.use(Router);
export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/home'
      // component: Home
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/header',
      component: Header

    },
    {
      path: '/login',
      component: Login
    },
    // 场地列表
    {
      path: '/fieldList',
      component: FieldList
    },
    // 场地详情
    {
      path: '/filedDetail',
      component: FiledDetail
    },
    // 创建场地
    {
      path: '/field/createField',
      component: CreateField
    },
    {
      path: '/text',
      component: Text
    },
    // 圈子详情
    {
      path: '/communityDetail',
      component: CommunityDetail
    },
    // 圈子列表
    {
      path: '/communityList',
      component: CommunityList
    },
    // 创建圈子
    {
      path: '/edit',
      component: Edit
    },
    // 活动列表
    {
      path: '/activityList',
      component: ActivityList
    },
    // 活动详情
    {
      path: '/activityDetail',
      component: ActivityDetail
    },
    // 创建活动
    {
      path: '/activity/editAct',
      component: EditAct
    },
    {
      path:'/travelDetail',
      component: TravelDetail
    },
    {
      path:'/travel/createTra',
      component:createTravel
    },
    {
      path:'/travel/createTraCircle',
      component:createTravelCircle
    },
    {
      path:'/user',
      component:User
    },
    {
      path:'/userInfo',
      component:UserInfo
    },
    {
      path:'/userActivity',
      component:UserActivity
    },
    {
      path:'/UserCircle',
      component:UserCircle
    },
    {
      path:'/UserTravel',
      component:UserTravel
    },
    {
      path:'/UserPlace',
      component:UserPlace
    },
    {
      path:'/UserCollect',
      component:UserCollect
    },
    {
      path:'/userVerifyFailed',
      component:userVerifyFailed
    },
    {
      path:'/historyHelp',
      component:HistoryHelp
    },
    {
      path:'/appDownload',
      component:APPdownload
    }
  ]
})
